package com.smedi.ismedi.inmail.core.domain.repository;

import com.smedi.ismedi.inmail.core.application.command.DingDeptUserSaveCommand;
import com.smedi.ismedi.inmail.core.domain.aggregatemodel.DingDeptUser;

import java.util.List;

public interface DingDeptUserRepository {

    List<String> getUserIdsByDeptKey(String deptKey);

    void batchSave(List<String> userIds,String deptKey);

    void batchDelete(List<String> userIds,String deptKey);

    void batchSaveImlUserId(List<DingDeptUserSaveCommand> dingDeptUserSaveCommands);

    List<DingDeptUser> getListByDeptKey(String deptKey);

    List<DingDeptUser> getAllUserIdAndDeptKey();

    List<String> getUserIds();

    Boolean personExist(Long personId);

    /**
     * 根据项目id获取人员姓名
     * */
    List<String> peopleByProjectId(String projectId);

}
